/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.axiom.controller;

import com.axiom.persistence.course_detail_persist;
import com.axiom.vo.course_detail;
import java.util.List;

/**
 *
 * @author Shuhail
 */
public class course_details_controller {
    
    public static course_details_controller getInstance() {
        
        return new course_details_controller();
    }
    
    public boolean insertCourseDetails(course_detail detail) {
        
        return course_detail_persist.getInstance().insertFresh(detail);
    }
    
    
    
    public List getAllCourses() {
        
        return course_detail_persist.getInstance().getAllDetails();
    }
    
    public int deleteCourse(String course_id) {
        
        return course_detail_persist.getInstance().deleteCourse(course_id);
    }
}
